#ifndef TOGGLE_NODE_H
#define TOGGLE_NODE_H


//[-------------------------------------------------------]
//[ Includes                                              ]
//[-------------------------------------------------------]

#include <osg/Array>
#include <osg/Geode>

#include <QString>

// Super class to enable comfortable highlighting of Geodes
class ToggleNode: public osg::Geode
{
public:
    ToggleNode();
    void toggleHightlight();
    void resetColor();

protected:
    void changeColor(const osg::Vec4& color);

protected:
    osg::Vec4 m_highlight;
    osg::Vec4 m_color;

    bool m_state;
};


#endif // TOGGLE_NODE_H